package com.facishare.open.demo.aop.impl;

import com.facishare.open.demo.aop.AopDemoService;
import com.facishare.open.demo.utils.RandomSleepUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


/**
 * aop实现.
 * Created by zenglb on 2016/7/19.
 */
@Service
@Slf4j
public class AopDemoWithAopServiceImpl implements AopDemoService {

    @Override
    public void buySomeSauce() {
        log.info("小明打酱油.");
        RandomSleepUtils.sleep();
    }
}
